using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RL.Javascript
{
	public class CodeBlock : IBlockScope
	{


		#region IBlockScope Members

		public virtual void Script(JsRenderingArgs args)
		{
			if (this.Scripting != null)
			{
				args.WriteLine("{");
				this.Scripting(this, args);
				args.WriteLine("}");
			}
		}

		public event JsRendering Scripting;

		#endregion
	}

}